local qiliaolingguang = fk.CreateSkill {
  name = "qiliaolingguang",
}

Fk:loadTranslationTable{
  ["qiliaolingguang"] = "祈疗灵光",
  [":qiliaolingguang"] = "每回合限一次，令所有梦之队势力角色回复一点体力。",

  ["#qiliaolingguang"] = "令所有梦之队角色回复一点体力",
}

qiliaolingguang:addEffect("active",{
  anim_type = "control",
  prompt = "#qiliaolingguang",
  card_num = 0,
  target_num = 0,
  can_use = function(self, player)
    return player:hasSkill(self.name)
    and player:usedSkillTimes(self.name, Player.HistoryPhase) == 0
  end,
  card_filter = Util.FalseFunc,
  on_use = function(self, room, effect)
    local player = effect.from
    for _, p in ipairs(room:getAlivePlayers(player)) do
      -- 为每个存活玩家添加 "n_fenliang" 技能
      -- 第三个参数 nil 表示不指定技能的额外参数，第四个参数 false 表示不是临时添加技能
      if p.kingdom == "dream" and p:isWounded()  then
        room:recover { 
        num = 1, 
        skillName = qiliaolingguang.name, 
        who = p, 
        recoverBy = player 
      }
     end
    end
  end,
})

return qiliaolingguang